From: Maciej Trela <maciej.trela [at] intel.com>
When performing external reshape it is needed to move suspend_hi forward to keep up with the current reshape_position.
Signed-off-by: Maciej Trela <maciej.trela [at] intel.com>
---
drivers/md/raid5.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index b7c6561..1828284 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
[at] [at] -4340,6 +4340,11 [at] [at] static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped
wake_up(&conf->wait_for_overlap);
sysfs_notify(&mddev->kobj, NULL, "sync_completed");
}
+ if (mddev->external && mddev->reshape_position > mddev->suspend_hi) {
+ mddev->suspend_hi = mddev->reshape_position;
+ mddev->pers->quiesce(mddev, 1);
+ mddev->pers->quiesce(mddev, 0);
+ }
return reshape_sectors;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
